const db = wx.cloud.database();
const app = getApp();

Page({
  data: {
    area: '',
    geneal: '',
  },



  onLoad: function (options) {
    var that = this;
    console.log(options);
    that.setData({
      area: options.area,
      agent: options.agent
    })
    if (options.page) {
      that.setData({
        page: options.page
      })
    }
  },
  to1: function () {
    var that = this;
    wx.navigateTo({
      url: '../qz/qz?area=' + that.data.area + '&agent=' + that.data.agent + '&page=' + that.data.page,
    })
  },
  to2: function () {
    var that = this;
    wx.navigateTo({
      url: '../rh/rh?area=' + that.data.area + '&agent=' + that.data.agent + '&page=' + that.data.page,
    })
  },
  to3: function () {
    var that = this;
    wx.navigateTo({
      url: '../ybj/ybj?area=' + that.data.area + '&agent=' + that.data.agent + '&page=' + that.data.page,
    })
  },
  to4: function () {
    var that = this;
    wx.navigateTo({
      url: '../zcx/zcx?area=' + that.data.area + '&agent=' + that.data.agent + '&page=' + that.data.page,
    })
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }

})